Skip to content

Create mermaid flow diagram and table #3899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: share-filter
Choose a base branch
from

Conversation

ScriptedAlchemy
Copy link
Member

%23%23 Description

This PR introduces comprehensive documentation (`nextjs-mf-sharing-diagram.md`) to clarify the Next.js Module Federation plugin's internal sharing mechanisms. It explains *why* Next.js 14 and 15 share similarly (primarily differing by server vs. client environment, not version) and details the prepared layer-based sharing for Next.js 15. This helps users understand the plugin's behavior and future capabilities.

Additionally, it includes a bug fix to prevent unwanted build configuration files (like `.swcrc`) from being published to npm, which was causing Jest test failures. A minor typo in the Next.js documentation has also been corrected.

%23%23 Related Issue

- Fixes %233873
- Addresses a user request for detailed documentation on Next.js Module Federation sharing internals.

%23%23 Types of changes

- [x] Docs change / refactoring / dependency upgrade
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)

%23%23 Checklist

- [ ] I have added tests to cover my changes.
- [x] All new and existing tests passed.
- [x] I have updated the documentation.

Copy link

changeset-bot bot commented Jul 11, 2025

🦋 Changeset detected

Latest commit: a965d32

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 33 packages
Name Type
@module-federation/runtime-tools Patch
@module-federation/enhanced Patch
@module-federation/rspack Patch
@module-federation/inject-external-runtime-core-plugin Patch
@module-federation/modern-js Patch
@module-federation/nextjs-mf Patch
@module-federation/node Patch
@module-federation/rsbuild-plugin Patch
@module-federation/rspress-plugin Patch
@module-federation/storybook-addon Patch
@module-federation/modernjsapp Patch
remote5 Patch
website-new Patch
@module-federation/runtime Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/sdk Patch
@module-federation/managers Patch
@module-federation/manifest Patch
@module-federation/dts-plugin Patch
@module-federation/third-party-dts-extractor Patch
@module-federation/devtools Patch
@module-federation/bridge-react Patch
@module-federation/bridge-vue3 Patch
@module-federation/bridge-shared Patch
@module-federation/bridge-react-webpack-plugin Patch
@module-federation/retry-plugin Patch
@module-federation/data-prefetch Patch
@module-federation/error-codes Patch
@module-federation/runtime-core Patch
create-module-federation Patch
@module-federation/cli Patch
@module-federation/esbuild Patch
@module-federation/utilities Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

- Added all direct import path shares (next/dist/compiled/*)
- Added all vendored React builds for different contexts
- Added Next.js internals shares including vendored/contexts/
- Added server-side default fallback shares
- Ensured all shares from source code are documented
- Improved accuracy of share configurations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants